//
//  ITAppStartManager.h
//  GLPFinance
//
//  Created by ITBE on 2016/11/23.
//  Copyright © 2016年 intube. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ITUserManager.h"
#import "ITTabBarController.h"
#import "ITGeneralManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface ITAppStartManager : NSObject
{
    NSString *deviceToken; //设备唯一标示
    
    NSString *deviceModel; //设备类型
}
@property(nonatomic, strong) BaseNavigationController *navigationController;
@property(nonatomic, strong) ITTabBarController *tabBarController;
@property(nonatomic, strong) ITUserInfo *currentUser;

@property(nonatomic, strong) NSDictionary *launchOptions;

+(instancetype)shareManager;

/** 重置home界面 */
-(void)resetAppView;

/** push到home界面 */
-(void)pushHomeView;

/** 选择tabbar的第几个 */
-(void)selectTabBarIndex:(NSInteger)index;

/** 获取tabbaritem在屏幕上的位置 */
-(CGRect)tabBarItemRectToScreenWithIndex:(NSInteger)index;

/** 选中home界面 */
-(void)selectHomeView;


/** 返回当前navigationController的最上面的ViewController */
-(UIViewController *)topViewController;


/** 设置IM的tab按钮的未读消息 */
-(void)setBadgeNumber:(int)badge;

/** app启动时处理事件 */
-(void)startApp;

@end

NS_ASSUME_NONNULL_END
